package day02;

public class VarDemo {
     public static void main(String[]args){
        //1)变量的声明：
        int a;
        int b,c,d;

        //2)变量的初始化：
        int e = 250;
        int f;
        f = 250;
        f = 360;
        int g=1,h=3,i=6,j=9;

        //3)变量的使用:
         int k = 5;
         int m = k+10;
         System.out.println(m);
         System.out.println("m");
         k = k + 18;
         System.out.println(k);

         int balance = 5000;
         balance = balance+1000;
         System.out.println(balance);
         balance = balance-2000;
         System.out.println(balance);

         //4)变量的命名：
         int a1,a_5$,_3c,$_7;
         //int a*b;
         //int 1a;
         int aa=5;
         //System.out.println(aA);
         //int class;

         //int 年龄
         //int nianLing
         int age;
         int scare,myScare,myJavaScare;


    }
}
